package com.zem.imos.Mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zem.imos.Entity.DrugsOrder;
import com.zem.imos.Entity.Params.ParamsPatient;
import com.zem.imos.Entity.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatientMapper  extends BaseMapper<Patient> {
    /**
     * 查询一名患者信息
     * @author ZEM
     * @Time 2021/11/24
     * @Description 通过wrapper条件查询一条患者记录
     */
    ParamsPatient selectOnePatient(@Param(Constants.WRAPPER) Wrapper wrapper);
    IPage<List<ParamsPatient>> selectPatientList(Page page,@Param(Constants.WRAPPER) Wrapper wrapper);
}
